from selenium import webdriver
import time

url = 'https:www.baidu.com'

driver = webdriver.Chrome()

driver.get(url)

print(driver.page_source)

print(driver.current_url)

print(driver.title)

# time.sleep(2)
# driver.get('http://www.douban.com')
# time.sleep(2)
# driver.back()
# time.sleep(2)
# driver.forward()
# time.sleep(2)
# driver.close()

driver.save_screenshot('baidu.png')
driver.quit()